/**
 * A color mixing function that gracefully handles nulls
 * @private
 */
@function ext-mix($color1, $color2, $weight) {
    @if $color1 == null or $color2 == null {
        @return null;
    }
    @return mix($color1, $color2, $weight);
}